"use strict";
var Adam = Adam || {};
Adam.State = Adam.State || {}; //new State();
Adam.views = Adam.views || {};
Adam.models = Adam.models || {};
Adam.collections = Adam.collections || {};
require.config({
	
	baseUrl: 'js',
	
	paths: {	
		// Libraries
		util:	'libs/util',
		text:	'libs/require/text'
	}
});

define([
    'router/router'
    
//	'models/diario',
//	'views/diary_view'
],function(AdamRouter/*,Diario,DiaryView*/){
	/*$.post(
		'http://www.andromeda.lettere.unipd.it/christian/prove/adam/indexx.php',
		{request:'{"operation":"get_record","username":"christian.cardin","password":"adam2012","tableName":"Diario","id":"391"}'},
		function(data){
			console.log("returned: "+JSON.stringify(data));
			var record = new Diario(data.content);
			var diario= new DiaryView({
				model:record,
				el:"#tabs-1"
			});
			diario.render();
		},
		"json"
	);*/
	
	
	//Adam.State.initialize();
	AdamRouter.initialize();
});
